package org.gd.hellojaxb.interfaces;

import org.gd.hellojaxb.utils.MarshallProperties;
import org.gd.hellojaxb.utils.Marshall;

public abstract class XmlObject implements XmlAble {

    public String toXml() {
        try {
            return Marshall.getInstance().marshal(this, MarshallProperties.WITHOUT_XML_HEADER);
        } catch (Exception e) {
            e.printStackTrace(System.err);
        }
        return null;
    }
}
